package Entities;

/**
 *
 * @author 647_2
 */
public class RatingVoice extends BaseEntity {

    // TODO Добавить конфиг

    private Double numberOfRating;
    private Composition composition;
    private User user;
    private String comment; // TODO Добавить в базу!!!

    public RatingVoice(){
        super();
        numberOfRating = null;
        composition = null;
        user = null;
        comment = null;
    }

    public RatingVoice(int ID, Double numnerOfRating, Composition composition, User user, String comment){
        super(ID, "Сущность голоса рейтинга");
        this.numberOfRating = numnerOfRating;
        this.composition = composition;
        this.user = user;
        this.comment = comment;
    }

    public RatingVoice(Double numnerOfRating, Composition composition, User user, String comment){
        super("Сущность голоса рейтинга");
        this.numberOfRating = numnerOfRating;
        this.composition = composition;
        this.user = user;
        this.comment = comment;
    }

    public Double get_numberOfRating() {
        return numberOfRating;
    }

    public void set_numberOfRating(Double numnerOfRating) {
        this.numberOfRating = numnerOfRating;
    }

    public Composition get_composition() {
        return composition;
    }

    public void set_composition(Composition composition) {
        this.composition = composition;
    }

    public User get_user() {
        return user;
    }

    public void set_user(User user) {
        this.user = user;
    }

    public String get_comment() {
        return comment;
    }

    public void set_comment(String comment) {
        this.comment = comment;
    }
}
